package com.ruoyi.generator.service;

import com.ruoyi.generator.entity.*;

import java.util.List;

public interface ManagementService {

    List<Region> selectRegionList(Region region);

    int addRegion(Region region);

    int updateRegion(Region region);

    int addEditRegion(Equipment equipment);

    int updateEquipment(Equipment equipment);

    List<Equipment> selectEquipmentList(Equipment equipment);

    int addEditTask(Task task);

    int updateTask(Task task);

    List<Task> selectTaskList(Task task);

    List<MaintenancePlan> selectMaintenancePlanList(MaintenancePlan maintenancePlan);


    void addRegions(List<Region> regions);


    void addEditTasks(List<Task> tasks);

    void addMaintenancePlans(List<MaintenancePlan> maintenancePlanList);

    void addEditEquipments(List<Equipment> equipments);


    void performBatchOperations(List<Region> regions, List<Equipment> equipments, List<Task> tasks,List<MaintenancePlan> maintenancePlanList);

    /**
     * 查询区域列表
     *
     * @return
     */
    List<Region> getRegionList();

    /**
     * 根据区域ID获取设备信息
     *
     * @param equipment
     * @return
     */
    List<Equipment> getEquipmentList(Equipment equipment);

    /**
     * 根据设备ID获取任务信息
     *
     * @param task
     * @return
     */
    List<Task> getTaskList(Task task);

}
